<%
//用户
var user = shiro.getUser();
var title  = '食药局申请-设备登记表';
layout("/inc/layout.html",{
title:title,
keywords:title,
description:title,
style:'user.css'
}){
%>
    <section class="container">
        <div class="row  mt15">
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>食药申请-设备登记表</strong>
            </div>
            <div class="panel-body">
                <!--项目状态-->

                <form class="form-horizontal col-sm-offset-1 col-sm-9" id="saveDeviceForm" method="post" action="/fooddrugApply/saveDevice">
                 <input type="hidden" name="id" id="id" value="${id!}">
                  <input type="hidden" name="applyId" id="applyId" value="${applyId!}">
                    <div class="form-group">
                        <label for="deviceName" class="col-sm-2 control-label">设备名称：</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="deviceName" name="deviceName" value="${deviceName!}" placeholder="设备名称"
                                   required="required"> 
                                    <b class="text text-danger" id="deviceName-error"></b>
                        </div>
                    </div>
                  
                    <div class="form-group">
                        <label for="number" class="col-sm-2 control-label">设备数量：</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="number" name="number" value="${number!}" placeholder="设备数量"
                                   required="required"> 
                                    <b class="text text-danger" id="number-error"></b>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="site" class="col-sm-2 control-label">设备位置：</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="site" name="site" value="${site!}" placeholder="设备位置"
                                   required="required"> 
                                    <b class="text text-danger" id="site-error"></b>
                        </div>
                    </div>

                </form>
            </div>
             <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class="mt5 mb5 block col-sm-3">
                    <button type="button" class="btn btn-warning btn-lg btn-block" id="cancelDevice">&nbsp;取消&nbsp;</button>
                    </div>
                    <div class="mt5 mb5 block col-sm-3">
                     <button type="button" class="btn btn-danger btn-lg btn-block" id="submitDevice">&nbsp;提交&nbsp;</button>
                    </div>
                </div>
            </div>
        </div>
   </div>
    </section>
<% } %>
<script>
    require(['modules/fooddrug_device'], function (fooddrugDevice) {
    	fooddrugDevice.info();
    });
</script>
</body>
</html>